import tensorflow as tf


sess = tf.InteractiveSession()

def replace_lo( s ):
    return s.replace( u'\\' , u'/' )

a = tf.Variable( u'\34home\400jh/jl.jpg' , "test" )


b = tf.py_func( replace_lo , [ a ] , tf.string )
#b = tf.regex_replace( a , '/' , '\x5C')

tf.global_variables_initializer().run()

print( a.eval() )
print( b.eval() )
